﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" 
Inherits="Ashlen.Portal.Web.Views.Account.Login" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
    <script src="../../Content/Globals.js" type="text/javascript"></script>
    <script src="../../Content/Membership.js" type="text/javascript"></script>
    <script type="text/javascript">
        // <![CDATA[
        $(document).ready(function() {
            documentLoad();            
        })
        // ]]>
    </script>
</asp:Content>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    	
<div id="loginDiv" title="Login">
    <h2>Login</h2>
    <p>
        Please enter your username and password below. <br />If you don't have an account,
        please click <a href="/Account/Register">here</a>
    </p>
    <%
        IList<string> errors = ViewData["errors"] as IList<string>;
        if (errors != null) {
            %>
                <ul class="error">
                <% foreach (string error in errors) { %>
                    <li><%= Html.Encode(error) %></li>
                <% } %>
                </ul>
            <%
        }
         %>
         <!-- ui-dialog -->
		
    <form method="post" action="<%= Html.AttributeEncode(Url.Action("Login")) %>">
        <div>
            <table>
                <tr>
                    <td>Username:</td>
                    <td colspan="2"><%= Html.TextBox("username") %></td>
                </tr>
                <tr>
                    <td>Password:</td>
                    <td colspan="2"><%= Html.Password("password") %></td>
                </tr>
                <tr>
                    <td></td>
                    <td colspan="2"><input type="checkbox" name="rememberMe" value="true" /> Remember me?</td>
                </tr>
                <tr>
                    <td></td>
                    <td colspan="2"><input name="returnUrl" value="<%=Request.QueryString["ReturnUrl"]%>" type="hidden"/></td>
                </tr>
                <tr>                    
                    <td><input type="submit" value="Login" /></td>
                    <td><input type="button" value="Forgot Password" onclick="ShowPasswordForgot();"/></td>
                    <td><input type="submit" value="Cancel" onclick="Close_Login();window.location.href='/';return false;" /></td>
                </tr>
            </table>
        </div>
    </form>
    </div>
    <!-- Password Forgot div -->
    <div id="passwordForgotDiv">
    Please enter your email address: <input type="text" id="txtEmail" size="35" /><br /><br />
    <input type="button" id="btnSendPassword" value="Send Password"/>
    <input type="button" value="Close" onclick="Close_PasswordForgot();"/>
    <img id="imgLoading" src="../../Images/loading_animated.gif" alt="Loading" style="display:none" />
    <div id="error"></div>
    </div>

</asp:Content>
